Skip to content

Conversation

@bearomorphism
Copy link
Collaborator

@bearomorphism bearomorphism commented Jan 14, 2026

Why

with pytest.raises block should contain only one statement which we expect it to throw exceptions.

Changes made

  • Removed unreachable code in tests
  • Fixed test_check_command_cli_overrides_config_message_length_limit. The last check_cmd assignment had no effect.
  • Extracted success_mock and commit_mock

@codecov
Copy link

codecov bot commented Jan 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.96%. Comparing base (52d84c1) to head (2424f3f).
⚠️ Report is 8 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1800   +/-   ##
=======================================
  Coverage   97.95%   97.96%           
=======================================
  Files          60       60           
  Lines        2646     2648    +2     
=======================================
+ Hits         2592     2594    +2     
  Misses         54       54           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bearomorphism bearomorphism force-pushed the test-pyraise-one-statement branch 2 times, most recently from 66a240f to fcbfb0a Compare January 14, 2026 06:55
@bearomorphism bearomorphism force-pushed the test-pyraise-one-statement branch from fcbfb0a to 2424f3f Compare January 15, 2026 17:42
@bearomorphism bearomorphism changed the title test: remove unreachable code in pytest.raises block, fix some malformed tests test: remove unreachable code in pytest.raises block, fix some malformed tests, extract fixtures Jan 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants